package com.qfmy.app.vo.community;

import com.qfmy.model.entity.user.Users;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 清风明月
 * @Package com.qfmy.app.vo.community
 * @date 2025/4/16
 * @description 帖子
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class PostVo {

    @Schema(description ="id")
    private Integer id;

    @Schema(description ="帖子标题")
    private String title;

    @Schema(description ="帖子内容")
    private String content;

    @Schema(description ="帖子作者")
    private Integer userId;

    @Schema(description ="帖子点赞量")
    private Integer likeCount;

    @Schema(description ="帖子收藏量")
    private Integer collect;

    @Schema(description ="帖子发布者")
    private Users user;

    @Schema(description ="帖子图片")
    private String[] image;

    @Schema(description ="当前用户是否对这个帖子进行点赞")
    private Boolean isLike;

}
